﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SCS.Common.Models
{
    public partial class Teacher
    {
        public Teacher()
        {
            this.Classes = new List<Class>();
            this.TeachingAssignments = new List<TeachingAssignment>();
        }

        public int teacherID { get; set; }
        [Required(ErrorMessage = "Trường không được để trống")]
        public string teacherName { get; set; }
        public string gender { get; set; }
        public string mobile { get; set; }
        public string address { get; set; }
        public Nullable<int> userID { get; set; }
        public bool deactived { get; set; }
        public Nullable<byte> subjectID { get; set; }
        [Required(ErrorMessage = "Trường không được để trống")]
        [DataType(DataType.Date, ErrorMessage = "Không đúng định dạng khi nhập")]
        [DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)]
        public System.DateTime dateOfBirth { get; set; }
        public virtual ICollection<Class> Classes { get; set; }
        public virtual MembershipUser MembershipUser { get; set; }
        public virtual Subject Subject { get; set; }
        public virtual ICollection<TeachingAssignment> TeachingAssignments { get; set; }
    }
}
